Skip to content

Copy tx hash toast - #491

Open
onyekachi66 wants to merge 2 commits into
TevaLabs:mainfrom
onyekachi66:copy-tx-hash-toast
Open

Copy tx hash toast#491
onyekachi66 wants to merge 2 commits into
TevaLabs:mainfrom
onyekachi66:copy-tx-hash-toast

Conversation

@onyekachi66

Copy link
Copy Markdown

Closes #419

Description

Summary
This PR implements a more user‑friendly success state after a prediction is placed. It adds a "Copy" button next to the transaction hash on the success screen, allowing users to easily copy the hash to their clipboard with clear toast feedback.

Key Features & Changes

  • Copy to Clipboard: Added a copy button in TxStatusTimeline.tsx for the transaction hash.
  • Toast Notifications: Integrated the existing sonner toast library to provide immediate feedback (Transaction hash copied to clipboard).
  • Graceful Fallbacks: Handles cases where clipboard access might be blocked or restricted (e.g., non-secure contexts) by showing an appropriate error toast.
  • Explorer Link: The existing StellarExpert block explorer link remains fully functional alongside the new copy feature.

Files Modified

  • src/components/TxStatusTimeline.tsx – Added copy handler, UI button, and toast integration.

Acceptance Criteria Met

  • Offer Copy tx hash + toast after successful place_bet
  • Optional explorer link included
  • Clipboard works on secure context
  • Failure toast if clipboard is blocked

@vercel

vercel Bot commented Aug 26, 2026

Copy link
Copy Markdown

@onyekachi66 is attempting to deploy a commit to the josephchimebuka's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add copy transaction hash control after successful prediction

1 participant